package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description: 点检任务明细
 * @Author: wxy
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_CHECK_TASK_DETAIL")
@Schema(description="点检任务明细")
public class EquipmentCheckTaskDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@Id
	@Generator
	@Column(name = "ID_", updatable = false)
	@Schema(description = "ID")
	private String id;
	/**任务ID*/
	@Column(name = "TASK_ID_")
	@Schema(description = "任务ID")
	private String taskId;
	/**序号*/
	@Column(name = "NUM_")
	@Schema(description = "序号")
	private Integer num;
	/**内容*/
	@Column(name = "CONTENT_")
	@Schema(description = "内容")
	private String content;
	/**公共参数id*/
	@Column(name = "PARAM_ID_")
	@Schema(description = "公共参数id")
	private String paramId;
	/**部位描述*/
	@Column(name = "PLACE_DESCRIBE_")
	@Schema(description = "部位描述")
	private String placeDescribe;
	/**方法*/
	@Column(name = "METHOD_")
	@Schema(description = "方法")
	private String method;
	/**目标*/
	@Column(name = "TARGET_")
	@Schema(description = "目标")
	private String target;
	/**是否记录属性*/
	@Dict(dicCode = "ERP_COMMON_YESNO")
	@Column(name = "IS_RECORD_")
	@Schema(description = "是否记录属性")
	private Integer isRecord;
	/**上限值*/
	@Column(name = "UPPER_LIMIT_")
	@Schema(description = "上限值")
	private Double upperLimit;
	/**下限值*/
	@Column(name = "LOWER_LIMIT_")
	@Schema(description = "下限值")
	private Double lowerLimit;
	/**内容类型*/

    @Dict(dicCode = "comment_type")
	@Column(name = "CONTENT_TYPE_")
	@Schema(description = "内容类型")
	private String contentType;
	/**存在选项*/
	@Dict(dicCode = "ERP_COMMON_YESNO")
	@Column(name = "CHOOSE_ENABLE_")
	@Schema(description = "存在选项")
	private Integer chooseEnable;
	/**告警阈值*/
	@Column(name = "WARN_VALUE_")
	@Schema(description = "告警阈值")
	private Double warnValue;
	/**预警阈值*/
	@Column(name = "EARLY_WARN_VALUE_")
	@Schema(description = "预警阈值")
	private Double earlyWarnValue;
	/**属性单位*/
	@Column(name = "ATTRIBUTE_UNIT_")
	@Schema(description = "属性单位")
	private String attributeUnit;
	/**估计用时（分钟）*/
	@Column(name = "EVALUATE_TIME_")
	@Schema(description = "估计用时（分钟）")
	private Integer evaluateTime;
	/**标准图片*/
	@Column(name = "PIC_")
	@Schema(description = "标准图片")
	private String pic;
	/**实际值*/
	@Column(name = "ACTUAL_VAULE_")
	@Schema(description = "实际值")
	private String actualVaule;
	/**现场图片*/
	@Column(name = "ACTUAL_PIC_")
	@Schema(description = "现场图片")
	private String actualPic;
	/**是否异常*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
	@Column(name = "IS_ABNORMAL_")
	@Schema(description = "是否异常")
	private String isAbnormal;
	/**异常描述*/
	@Column(name = "ABNORMAL_REMARK_")
	@Schema(description = "异常描述")
	private String abnormalRemark;


}
